<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<?php if($KEYWORDS): echo ($KEYWORDS); endif; ?>" />
<meta name="description" content="<?php if($DESCRIPTION): echo ($DESCRIPTION); endif; ?>" />
<meta name="robots" content="all" />
<meta name="author" content="seophp.taobao.com" />
<meta name="generator" content="SEOPHP v2.0 UTF" />
<meta name="template" content="SEOPHP BLOG v2.0" />
<title><?php echo ($WEBTITLE); ?></title>
<link href="../Public/Css/style.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="/Public/Js/Base.js"></script><script type="text/javascript" src="/Public/Js/prototype.js"></script><script type="text/javascript" src="/Public/Js/mootools.js"></script><script type="text/javascript" src="/Public/Js/Think/ThinkAjax.js"></script><script type="text/javascript" src="/Public/Js/Form/CheckForm.js"></script><script type="text/javascript" src="/Public/Js/Util/ImageLoader.js"></script><script type="text/javascript" src="/Public/Js/jquery.js"></script><script type="text/javascript" src="/Public/Js/Focus/myfocus.js"></script> 
<script type="text/javascript" src="../Public/Js/common.js"></script>
<script type="text/javascript" src="../Public/Js/jquery.artZoom.js"></script>
<script type="text/javascript" src="../Public/Js/shCore.js"></script>
<script type="text/javascript" src="../Public/Js/shLegacy.js"></script>
<script type="text/javascript" src="../Public/Js/shBrushAll.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
var $J=jQuery.noConflict();
//指定当前组模块URL地址 
var URL = '__URL__';
var APP = '__APP__';
var PUBLIC = '__PUBLIC__';
ImageLoader.startLoad();
jQuery(document).ready(function(){
    jQuery(document).bind("contextmenu",function(e){
        //return false;
    });
});

	//there is loding syntax hight light swf
	SyntaxHighlighter.config.clipboardSwf = '../Public/Images/clipboard.swf';
	SyntaxHighlighter.all();
	dp.SyntaxHighlighter.HighlightAll('code');
	
//-->
</SCRIPT>
</head>

<body>
<a name="headertop" id="gettop"></a>
<div id="header">
	<div id="navMenu">
		<ul>
				<?php echo (getnavhtml($topnavlist,'menu_blogtop', 0, '', '', 1)); ?>
				<?php if(is_array($topnavlist)): $i = 0; $__LIST__ = $topnavlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
						<a <?php if($vo[_active]): ?>class="active"<?php endif; ?> href="<?php if($vo[link]): echo ($vo["link"]); else: echo (geturl($vo,$vo[name].'/index')); endif; ?>" ><span><?php echo ($vo["title"]); ?></span></a>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
  <div id="subMenu">
  	<h1><?php echo (C("blog_name")); ?></h1>
		<h4><?php echo (C("blog_name_description")); ?></h4>
		<ul>
        <li><a href="<?php echo (geturl($rss,'Home/Blog/rss',1,'xml')); ?>" onfocus="this.blur();"><img src="../Public/Images/icon_rss.jpg" onmouseover="javascript:this.src='../Public/Images/icon_rss_hover.jpg'"  onmouseout="javascript:this.src='../Public/Images/icon_rss.jpg'" alt="订阅我的博文!" title="订阅我的博文!" /></a></li>
        <?php if(C("blog_weibo")!= ''): ?><li><a href="<?php echo (C("blog_weibo")); ?>" onfocus="this.blur();" target="_blank"><img src="../Public/Images/icon_weibo.jpg" onmouseover="javascript:this.src='../Public/Images/icon_weibo_hover.jpg'"  onmouseout="javascript:this.src='../Public/Images/icon_weibo.jpg'" alt="关注我的微博!" title="关注我的微博!"/></a></li><?php endif; ?>
        <?php if(C("blog_email")!= ''): ?><if><li><a href="mailto:<?php echo (C("blog_email")); ?>" onfocus="this.blur();"><img src="../Public/Images/icon_mail.jpg" onmouseover="javascript:this.src='../Public/Images/icon_mail_hover.jpg'"  onmouseout="javascript:this.src='../Public/Images/icon_mail.jpg'" alt="发邮件给<?php echo (C("blog_name")); ?>吧!" title="发邮件给<?php echo (C("blog_name")); ?>吧!"/></a></li><?php endif; ?>
    </ul>
  </div>
</div><!-- //End header -->
<!-- /header -->

<div id="container">	
	<div id="main">		
		<div class="listBox">
			<div class="listBoxTop">
				<div class="listBoxComment">
					<span class="countComments"><?php echo ($recordcount); ?></span>
				</div>
				<div class="listBoxTitle">
					<h2><?php echo ($data["title"]); ?></h2>
					<span class="timeAuthor">
						发布于：<small><?php echo (todate($data["create_time"],'Y-m-d')); ?></small>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;作者：<small><?php echo ($data["author"]); ?></small>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;已聚集：<small><?php echo ($data["views"]); ?></small>人围观
					</span>
				</div>
			</div>
			<div class="content">
				<?php echo ($data['content']); ?>
			</div>
			<?php if($data[tags]): ?><div class="listBoxBottom">
						 <small class="listBoxBottomTag"></small>
						 <small class="digg" id="newdigg"></small>
				</div><?php endif; ?>
		</div>
		
		<div id="otherBox">
		  <h3>[相关日志]</h3>
			<ul class="relateArticle ico2">
      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
    <td width='50%'>
<li><a href="/blog/life/2012/good-bye-2012.html">再见，2012</a></li>
    </td>
    <td width='50%'>
<li><a href="/blog/life/2012/2012-first-diary.html">2012年第一篇日志《离开以后》 囧~</a></li>
    </td>
    </tr>
<tr>
    <td width='50%'>
<li><a href="/blog/life/2011/happy-new-year-of-2012.html">再见，2011</a></li>
    </td>
    <td width='50%'>
<li><a href="/blog/life/2011/cinematography-of-cele-in-gulangyu.html">鼓浪屿之策乐2012春夏新品拍摄记</a></li>
    </td>
    </tr>
<tr>
    <td width='50%'>
<li><a href="/blog/life/2011/my-sister-wedding.html">从现在开始你只许爱我一个人</a></li>
    </td>
    <td width='50%'>
<li><a href="/blog/life/2011/piaoluo-de-1h1y.html">那些飘落的一花一叶</a></li>
    </td>
    </tr>
    </table>

      </ul>
	  </div>
	  
<!-- //加载评论区 -->
<a name='postform'></a>
<div class="commentBox">
	<form method="post" id="commentform" action="">
     <input name="modid" type="hidden" value="<?php echo ($data["id"]); ?>">
     <input name="status" type="hidden" value="<?php echo (C("comment_check")); ?>">
     <input name="sort" type="hidden" value="0">
     <input name="module" type="hidden" value="<?php echo ($modname); ?>">
     <input name="moduletitle" type="hidden" value="评论">
     <input name="ajax" type="hidden" value="1">
		  <div class="commentPost" id="_ajax_feedback">
				<div class="commentUserinfo">
						 &nbsp;&nbsp;&nbsp;
						 报上大名：<input type='text' name='nickname' class="comment_nickname" style="text-transform:uppercase;"/>			
						 &nbsp;&nbsp;&nbsp;
						 神兽验证马：<input type='text' name='verify' id="verifyinput" style="text-transform:uppercase;"/>
				</div>
				<div class="yanzhengma">
					<img class="verifyImg" onclick="fleshVerify()" style="cursor:pointer; margin-top:2px;" alt="点击更换验证码" title="点击更换验证码" src="<?php echo (geturl($vo,'Home/Comment/verify',1)); ?>">
				</div>
			</div>		
			<div class="commentArea">
				<textarea cols="60" name="contents" class="comment_contents" rows="5"></textarea>
			</div>	
			<div class="commentMood">
			  <ul>                               
		        <li><input type="radio" name="face" value="1" checked="1" /><img src="../Public/Images/mood/ico-mood-1.gif" width="19px" height="16px"/></li>
		        <li><input type="radio" name="face" value="2"/><img src="../Public/Images/mood/ico-mood-2.gif" width="16px" height="16px"/></li>
		        <li><input type="radio" name="face" value="3"/><img src="../Public/Images/mood/ico-mood-3.gif" width="16px" height="16px"/></li>
		        <li><input type="radio" name="face" value="4"/><img src="../Public/Images/mood/ico-mood-4.gif" width="18px" height="16px"/></li>
		        <li><input type="radio" name="face" value="5"/><img src="../Public/Images/mood/ico-mood-5.gif" width="16px" height="16px"/></li>
		        <li><input type="radio" name="face" value="6"/><img src="../Public/Images/mood/ico-mood-6.gif" width="19px" height="16px"/></li>
		        <li><input type="radio" name="face" value="7"/><img src="../Public/Images/mood/ico-mood-7.gif" width="17px" height="16px"/></li>
		        <li><input type="radio" name="face" value="8"/><img src="../Public/Images/mood/ico-mood-8.gif" width="17px" height="16px"/></li> 
		        <li><input type="radio" name="face" value="9"/><img src="../Public/Images/mood/ico-mood-9.gif" width="18px" height="16px"/></li>
		        <li><input type="radio" name="face" value="10"/><img src="../Public/Images/mood/ico-mood-10.gif" width="18px" height="16px"/></li>
		        <li><input type="radio" name="face" value="11"/><img src="../Public/Images/mood/ico-mood-11.gif" width="16px" height="16px"/></li>
				</ul>
			</div>	
			<div class="commentSubmit">
				<div style="margin-top:0px;float:right;color:red;"><span id="comment_tips"></span></div>
				<button type="button" onclick="commentsubmit();">发表评论</button>
			</div>	
	</form>
	
</div>
<a name='commettop'></a>

<div class="commentLayout">
	<div class="commetcontent commentlistTable">
		<?php if($list): if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="dede_comment">
				<div class="decmt-box">
				<div class="decmt-title">
					<span class="plpic"><img src="../Public/Images/man_44.png" height="40" width="40"></span>
					<div class="usernameBox"><span class="username"><?php echo ($vo["nickname"]); ?></span></div>
					<span class="date"><?php echo (date('Y-m-d H:i', $vo["create_time"])); ?></span>
				</div>
				<div class="decmt-act">
					<span id="good<?php echo ($vo["id"]); ?>">
						<a href="javascript:void(0);" rel="nofollow" onclick="postBadGood('good',<?php echo ($vo["id"]); ?>);">支持</a>&nbsp;<span class="good_<?php echo ($vo["id"]); ?>">[<?php echo ($vo["dig_good"]); ?>]</span>&nbsp;
					</span>
					<span id="bad<?php echo ($vo["id"]); ?>">
						<a href="javascript:void(0);" rel="nofollow" onclick="postBadGood('bad',<?php echo ($vo["id"]); ?>);">反对</a>&nbsp;<span class="bad_<?php echo ($vo["id"]); ?>">[<?php echo ($vo["dig_bad"]); ?>]</span>&nbsp;
					</span>
				</div>
				<div class="decmt-content"><?php echo ($vo["contents"]); ?></div>
				<div class="replyBoxQuote">
				  <a href="javascript:void(0);" rel="nofollow" onclick="quoteCommet('<?php echo ($vo["id"]); ?>');">回复</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			  </div>
				</div>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
		<?php if($page != ''): ?><div class="commetpages"><?php echo ($pages); ?></div><?php endif; ?>
		<?php else: ?>
		<div class="nocomment" style="padding:50px 0px 0px 20px;">沙发留给你的，赶快写评论吧~~</div><?php endif; ?>
	</div>
</div>

<SCRIPT LANGUAGE="JavaScript">
<!--

function fleshVerify(type){
		//重载验证码
		var timenow = new Date().getTime();
		if (type)
		{
			jQuery('.verifyImg').attr("src", "<?php echo (geturl($url,'Home/Comment/verify?adv=1')); ?>?"+timenow);
		}else{
			jQuery('.verifyImg').attr("src", "<?php echo (geturl($url,'Home/Comment/verify')); ?>?"+timenow);
		}
}

function quoteCommet(cid){
		jQuery(".comment_contents").val('#'+cid+'#');
		jQuery(".comment_nickname").focus();
}

function commentsubmit(){
		sendForm("commentform", "<?php echo (geturl($url,'Home/Comment/insert')); ?>", commentHandle, "comment_tips");
}

function sendForm(formId,action,response,target,effect){
		// Ajax方式提交表单
		if (CheckForm($(formId),'ThinkAjaxResult'))//表单数据验证
		{
				ThinkAjax.sendForm(formId,action,response,target);
		}
}

function commentHandle(data,status){
		if (status==1)
		{
			appendComment();
			jQuery('#commentform')[0].reset();
		}	
}

function postBadGood(dig, cid){
		var url = "<?php echo (geturl($url,'Home/Comment/digg')); ?>";
		jQuery.ajax({
				type: 'POST',
				url: url,
				data: 'ajax=1&dig='+dig+'&cid='+cid,
				success: function(data){
						if(data.status==1){
								var html = jQuery("."+dig+"_"+cid).html();
								var digcount = parseInt(html.replace(/[^0-9]/ig,""))+1;
								jQuery("."+dig+"_"+cid).html('['+digcount+']');
						}else{
								alert(data.info);
						}
				}
		});		
}

function appendComment(){
	 var nickname = "";
	 var contents = jQuery(".comment_contents").val();
	 var commentTime = CurentTime();
	 if(jQuery(".comment_nickname").val() != ''){
	 		nickname = jQuery(".comment_nickname").val();
	 }else{
	 		nickname = '无名屎';
	}
	 jQuery('.nocomment').remove();
	 <?php if(C("comment_check")== 0): ?>contents=contents+"<font color=red>&nbsp;&nbsp;您的评论需要审核后才能显示！</font>";<?php endif; ?>
	 var commentHtml = '<div class="dede_comment"><div class="decmt-box"><div class="decmt-title"><span class="plpic"><img src="../Public/Images/man_44.png" height="40" width="40"></span><div class="usernameBox"><span class="username">'+nickname+'</span></div><span class="date">'+commentTime+'</span></div><div class="decmt-content">'+contents+'</div></div></div>';
	 var commentHtml = commentHtml + jQuery(".commentlistTable").html();
	 jQuery(".commentlistTable").html('');
	 jQuery(".commentlistTable").append(commentHtml);
}

function CurentTime()
{
		var now = new Date();
		var year = now.getFullYear();
		var month = now.getMonth() + 1;
		var day = now.getDate();
		var hh = now.getHours();
		var mm = now.getMinutes();
		var clock = year + "-";
		if(month < 10)clock += "0";
		clock += month + "-";
		if(day < 10)clock += "0";
		clock += day + " ";
		if(hh < 10)clock += "0";
		clock += hh + ":";
		if (mm < 10) clock += '0'; 
		clock += mm; 
		return(clock);
}

//-->
</SCRIPT><!-- //评论内容区结束 -->
		
</div>
	
	<!-- //加载右侧区域 -->
	<div class="sidebar">
	
		  <div class="sidebarBox linelimit sidebarBoxTop">
  	<div class="boxTop">
  		<h2>日志分类</h2>
  	</div>
  	<div class="boxClassify">
  		<ul>
	  		<?php if(is_array($category)): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cat): $mod = ($i % 2 );++$i;?><li><a href='<?php echo (geturl($cat,'Home/Blog/index?catid='.$cat['id'])); ?>'><?php echo ($cat['title']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
  	</div>
  </div>

		<?php echo (getlistbymodule($hotbloglist,'Blog',10,'views DESC', 'status=1'.($data['catid']?' AND catid='.$data['catid']:''))); ?>
<?php if($hotbloglist): ?><div class="sidebarBox linelimit [classname]">
  	<div class="boxTop">
  		<h2>热门日志</h2>
  	</div>
  	<div class="boxContent">
  		<ul>
  		<?php if(is_array($hotbloglist)): $i = 0; $__LIST__ = $hotbloglist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$blog): $mod = ($i % 2 );++$i;?><li><a href="<?php echo (geturl($blog,'Home/Blog/read?id='.$blog['id'], 1)); ?>" title="<?php echo ($blog["title"]); ?>"><?php echo ($blog["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
  	</div>
  </div><?php endif; ?>
			
		<?php echo (getlistbymodule($sidecommentlist,'Comment',10,'create_time DESC', "status=1 AND module='New'")); ?>
<?php if($sidecommentlist): foreach($sidecommentlist as $val){ $cids[] = $val['modid']; } $modsql = "id IN('".implode("','", $cids)."')"; getListByModule($ctbloglist, 'New', 10, 'id DESC', $modsql); foreach($ctbloglist as $val){ $val['url'] = getUrl($val,'Home/Blog/read?id='.$val['id'],1); $commentbloglist[$val['id']] = $val; } ?>	
  <div class="sidebarBox [classname]">
  	<div class="boxTop">
  		<h2>网友评论</h2>
  	</div>
  	<div class="boxContent">
  		<ul class="comments">
  			<?php if(is_array($sidecommentlist)): $i = 0; $__LIST__ = $sidecommentlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$comment): $mod = ($i % 2 );++$i;?><li> <small><a href="javascript:void();" rel="nofollow" class="username"><?php echo ($comment["nickname"]); ?></a>&#160;评论&#160;<a href="<?php echo ($commentbloglist[$comment['modid']]['url']); ?>" title="<?php echo ($commentbloglist[$comment['modid']]['title']); ?>"><?php echo ($commentbloglist[$comment['modid']]['title']); ?></a></small>
	        <p><?php echo ($comment["contents"]); ?></p>
	        </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </li>
      </ul>
  	</div>
  </div><?php endif; ?>
			
		<?php echo (getlistbymodule($sidelinklist,'Link',100,'sort DESC', "status=1 AND isindex=2")); ?>
<?php if($sidelinklist): ?><div class="sidebarBox [classname]">
  	<div class="boxTop">
  		<h2>友情链接</h2>
  	</div>
  	<div class="boxContent">
  		<ul class="linksTxt">
  			<?php if(is_array($sidelinklist)): $i = 0; $__LIST__ = $sidelinklist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): $mod = ($i % 2 );++$i;?><li><a href='<?php echo ($link[url]); ?>' target='_blank'><?php echo ($link["title"]); ?></a> </li><?php endforeach; endif; else: echo "" ;endif; ?>
		  </ul>
  	</div>
  </div><?php endif; ?>

	</div>
	
</div>


<div class="clearfix"></div>
<div id="subFoot">	
	<div id="Copyright">
		<div class="themeBy">
		  <h1>&copy 2011-2012 <?php echo ($_SERVER['SERVER_NAME']); ?> &nbsp; - &nbsp; <a href="<?php echo (geturl($url,'Home/Blog/Index', 1)); ?>" target="_blank" title="<?php echo (C("blog_name_description")); ?>"><strong><?php echo (C("blog_name")); ?></strong></a><?php if($FOOTSEOKEY): if(is_array($FOOTSEOKEY)): $i = 0; $__LIST__ = $FOOTSEOKEY;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sk): $mod = ($i % 2 );++$i;?>&nbsp; - &nbsp; <a href="<?php if($sk[link]): echo ($sk["link"]); else: ?>http://<?php echo ($_SERVER['SERVER_NAME']); ?>/<?php endif; ?>" ><strong><?php echo ($sk["name"]); ?></strong></a><?php endforeach; endif; else: echo "" ;endif; endif; ?>
		  </h1>
	  </div>
	</div>
</div>

<?php if($Think.config.share_code): echo (C("share_code")); endif; ?>

<!-- /footer -->
</body>
</html>